<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:75:"D:\fangcms\fangcms_city_add\public/../application/manage\view\role\add.html";i:1474526644;}*/ ?>
<!--添加角色-->
<div class="dialog_content">
    <form id="info_form" action="<?php echo url('Role/addDo'); ?>" method="post">
        <table width="100%" class="table_form">
            <tr>
                <th width="120">角色名称 :</th>
                <td>
                    <input type="text" class="input-text" name="title" size="30" />
                </td>
            </tr>

        </table>
    </form>
</div>
<script>
    $(function(){
        $('#info_form').ajaxForm({success:complate,dataType:'json'});
        function complate(result){
            if(result.status == 1){
                $.dialog.get(result.dialog).close();
                $.yingloujie.tip({content:result.msg});
                setTimeout(function(){window.location.reload();},1000);
            } else {
                $.yingloujie.tip({content:result.msg, icon:'alert'});
            }
        }
    });
</script>